<template>
  <div id="user-info">
    <div class="info">
      <div @click="LoginOrRegister">
        <img class="avatar" src="https://pic.imgdb.cn/item/62d10dcbf54cd3f9370361ff.jpg">
      </div>
      <div>
        房东家的猫
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "UserInfo",
  data() {
    return {}
  },
  methods: {
    LoginOrRegister() {
      this.$router.push({name: 'login'})
    }
  },
}
</script>

<style scoped lang="scss">
#user-info {
  box-shadow: 1px 1px 3px 3px #fafafa;
  padding: 30px;
  border-radius: 20px;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
</style>